package com.ujoku.service;

import com.labillusion.core.database.base.mybatis.service.base.BaseService;
import com.ujoku.domain.Order;

import java.util.List;

/**
 * Created by Andy.Lian on 2014/11/2.
 */
public interface OrderService<T> extends BaseService<T> {
    Order selectById(String orderId, int memberId);

    int selectOrderStatusById(String orderId, int memberId);

    //计算库存和销量
    void setGoodsSaleCount(Order order);

    //计算库存和销量
    void rollBackGoodsSaleCount(Order order);

    //计算私人酒窖库存和销量
    void setMyListItemSaleCount(Order order);

    //计算私人酒窖库存和销量
    void rollBackMyListItemSaleCount(Order order);
}
